package service.impl;

import java.sql.SQLException;

import bean.Staff;
import dao.AdminDao;
import dao.impl.AdminDaoImpl;
import service.AdminService;

public class AdminServiceImpl implements AdminService {
	AdminDao adminDao = new AdminDaoImpl();
	@Override
	public Staff login(Staff staff) {
		try {
			return adminDao.queryByNameAndPsw(staff.getsName(), staff.getsPassword());
		} catch (SQLException e) {
			e.printStackTrace();
		}		
		return null;
	}

}
